package com.dys.test01;

/**
 * @className: com.dys.test01.Season
 * @description: 枚举类
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/08/25 下午11:33
 */
public class Season {
    /**
     * 季节名字
     */
    private final String seasonName;

    /**
     * 季节描述
     */
    private final String seasonDescription;

    private Season(String seasonName, String seasonDescription) {
        this.seasonName = seasonName;
        this.seasonDescription = seasonDescription;
    }

    // 提供枚举类的 有限的 确定的 对象
    public static final Season SPRING = new Season("春天", "春暖花开");
    public static final Season SUMMER = new Season("夏天", "烈日炎炎");
    public static final Season AUTUMN = new Season("秋天", "硕果累累");
    public static final Season WINTER = new Season("冬天", "冰天雪地");

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDescription() {
        return seasonDescription;
    }

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDescription='" + seasonDescription + '\'' +
                '}';
    }
}
